package com.yxb.cms.domain.vo;

import com.yxb.cms.domain.dto.PageDto;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Teachers  extends PageDto implements Serializable {
    /**
     * 主键id
     */
    private Long id;

    /**
     * 教师名称
     */
    private String tname;

    /**
     * 教师编号
     */
    private String tcode;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改人
     */
    private String modifier;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 是否删除（0：否1：是）
     */
    private Integer deleteFlage;

    /**
     * 性别 0：男  1：女
     */
    private Integer sex;

    /**
     * 爱好
     */
    private String hobby;

    private String jiguan;

    private String minzu;

    private Long shenfenzheng;

    private Long lianxidianhua;

    private Long courseId;

    private String coursesName;

    @Override
    public String toString() {
        return "Teachers{" +
                "id=" + id +
                ", tname='" + tname + '\'' +
                ", tcode='" + tcode + '\'' +
                ", creator='" + creator + '\'' +
                ", createTime=" + createTime +
                ", modifier='" + modifier + '\'' +
                ", updateTime=" + updateTime +
                ", deleteFlage=" + deleteFlage +
                ", sex=" + sex +
                ", hobby='" + hobby + '\'' +
                ", jiguan='" + jiguan + '\'' +
                ", minzu='" + minzu + '\'' +
                ", shenfenzheng=" + shenfenzheng +
                ", lianxidianhua=" + lianxidianhua +
                ", xibu='" + xibu + '\'' +
                ", zhuanye='" + zhuanye + '\'' +
                ", zhicheng='" + zhicheng + '\'' +
                '}';
    }

    private String xibu;

    public String getJiguan() {
        return jiguan;
    }

    public void setJiguan(String jiguan) {
        this.jiguan = jiguan;
    }

    public String getMinzu() {
        return minzu;
    }

    public void setMinzu(String minzu) {
        this.minzu = minzu;
    }

    public Long getShenfenzheng() {
        return shenfenzheng;
    }

    public void setShenfenzheng(Long shenfenzheng) {
        this.shenfenzheng = shenfenzheng;
    }

    public Long getLianxidianhua() {
        return lianxidianhua;
    }

    public void setLianxidianhua(Long lianxidianhua) {
        this.lianxidianhua = lianxidianhua;
    }

    public String getXibu() {
        return xibu;
    }

    public void setXibu(String xibu) {
        this.xibu = xibu;
    }

    public String getZhuanye() {
        return zhuanye;
    }

    public void setZhuanye(String zhuanye) {
        this.zhuanye = zhuanye;
    }

    public String getZhicheng() {
        return zhicheng;
    }

    public void setZhicheng(String zhicheng) {
        this.zhicheng = zhicheng;
    }

    private String zhuanye;

    private String zhicheng;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTcode() {
        return tcode;
    }

    public void setTcode(String tcode) {
        this.tcode = tcode;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleteFlage() {
        return deleteFlage;
    }

    public void setDeleteFlage(Integer deleteFlage) {
        this.deleteFlage = deleteFlage;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Teachers other = (Teachers) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTname() == null ? other.getTname() == null : this.getTname().equals(other.getTname()))
            && (this.getTcode() == null ? other.getTcode() == null : this.getTcode().equals(other.getTcode()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleteFlage() == null ? other.getDeleteFlage() == null : this.getDeleteFlage().equals(other.getDeleteFlage()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getHobby() == null ? other.getHobby() == null : this.getHobby().equals(other.getHobby()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTname() == null) ? 0 : getTname().hashCode());
        result = prime * result + ((getTcode() == null) ? 0 : getTcode().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleteFlage() == null) ? 0 : getDeleteFlage().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getHobby() == null) ? 0 : getHobby().hashCode());
        return result;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCoursesName() {
        return coursesName;
    }

    public void setCoursesName(String coursesName) {
        this.coursesName = coursesName;
    }
}